<?php
/**
 * 监听示例：监听全市价格跳动
 */

use Www\Wss\BinanceFuturesAPI;

require __DIR__.'/../vendor/autoload.php';


$api = new BinanceFuturesAPI(__DIR__.'/../.config/my-binance-acc-1.json');
$api->miniTicker(function($api, $ticker) {
	print_r($ticker);
});

/* 
[93] => Array
(
    [symbol] => PENDLEUSDT
    [close] => 5.0426000
    [open] => 5.4099000
    [high] => 5.4104000
    [low] => 4.9629000
    [volume] => 9836063
    [quoteVolume] => 50837642.9331000
    [eventTime] => 1732064128704
)

[94] => Array
(
    [symbol] => 1000CATUSDT
    [close] => 0.0534700
    [open] => 0.0490000
    [high] => 0.0562200
    [low] => 0.0460000
    [volume] => 1955670944
    [quoteVolume] => 97121433.2017200
    [eventTime] => 1732064129171
)

[95] => Array
(
    [symbol] => METISUSDT
    [close] => 44.1400
    [open] => 47.6400
    [high] => 47.6400
    [low] => 43.3100
    [volume] => 163240.56
    [quoteVolume] => 7397820.5217
    [eventTime] => 1732064129147
)
 */